package com.tencent.bk.sdk.iam.dto.action;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.tencent.bk.sdk.iam.constants.ActionTypeEnum;
import com.tencent.bk.sdk.iam.dto.BaseDTO;
import com.tencent.bk.sdk.iam.dto.resource.RelatedResourceTypeDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper=true)
public class ActionDTO extends BaseDTO {
    private ActionTypeEnum type;
    @JsonProperty("related_actions")
    private List<ActionDTO> relatedActions = new ArrayList();
    @JsonProperty("related_resource_types")
    private List<RelatedResourceTypeDTO> relatedResourceTypes = new ArrayList();
    private Integer version;
}
